using System.Diagnostics;
using System.ServiceProcess;

namespace SharpService.Test
{
    public class DebugService : ServiceBase
    {
        protected override void OnStart(string[] args)
        {
            Log(args);
            Log("DebugService started");
        }

        public static void Log(params string[] args)
        {
            foreach (string arg in args)
            {
                EventLog.WriteEntry("SharpService.Test.DebugService", arg, EventLogEntryType.Information);
            }
        }
    }
}